{include file="common/pc/header" title="自定义站点设置" /}

{include file="common/pc/config"/}

<script>
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form;
        form.on("submit(submit)", function (data) {
            g.loading();
            $.post("siteConfig", data.field, function (ret) {
                g.loading(false);
                if (ret.code == 1) {
                    layer.alert(ret.msg, {offset: 'b'}, function () {
                        document.location.reload();
                    });
                } else {
                    g.loading(false);
                    layer.alert(ret.msg, {offset: 'b'});
                }
            }, "json");
            return false;
        })
    });
</script>

{include file="common/pc/footer"/}